﻿namespace NEvoWeb.Modules.NB_Store
{
    using System;
    using System.Text;
    using System.Web;

    public abstract class TextProvider : IHttpHandler
    {
        protected TextProvider()
        {
        }

        public void ProcessRequest(HttpContext context)
        {
            string s = "";
            s = SharedFunctions.GetFeederReportText(context, false);
            if (s != "")
            {
                context.Response.ContentType = "text/plain";
                context.Response.ContentEncoding = Encoding.UTF8;
                context.Response.Cache.SetAllowResponseInBrowserHistory(true);
                context.Response.Write(s);
            }
        }

        public bool IsReusable
        {
            get
            {
                return true;
            }
        }

        
    }
}

